﻿/* 混合变量 */

.scrollbar() {
    &::-webkit-scrollbar {
        width: 7px;
    }
    &::-webkit-scrollbar-thumb {
        background-color: #dddddd;
        background-clip: padding-box;
        min-height: 28px;
        border-radius: 3px;
        &:hover {
            background-color: #bbb;
        }
    }
    &::-webkit-scrollbar-track-piece {
        background-color: #f8f8f8;
        border-radius: 3px;
    }
}

/* 页面样式 */

html,
body {
    height: 100%;
    width: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    overflow-y: auto;
}

.layui-body {
    .scrollbar;
    &.noscroll {
        overflow: hidden;
    }
    &>div {
        min-width: 100%;
        min-height: 100%;
        padding: 15px;
        box-sizing: border-box;
    }
}

/* 表单样式 */

.layui-form-item {
    &.hidden {
        display: none;
    }
    &.nobottom {
        margin-bottom: 0px;
    }
    .layui-form-label {
        width: 90px;
        padding: 9px 10px;
        &.width-auto {
            width: auto;
        }
    }
    .layui-input-block {
        margin-left: 110px;
    }
    .layui-input[readonly]:not(.layui-unselect) {
        color: #777;
    }
}